const Router = require('koa-router');

const homeController = require('../controllers/home');
// 子路由
let route = new Router();

route.get('/', homeController.showIndex);
route.get('/user', homeController.getPage);
route.post('/user', homeController.postInfo);

// 加载所有子路由
// let routes = new Router();

// routes.use('/user', home.routes(), home.allowedMethods())

module.exports = route;